﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using ERP.ERPSystem.ProductionSystem.Dto;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 班次接口
    /// </summary>
    public interface IShiftService:IApplicationService
    {
        /// <summary>
        /// 获取班次分页列表
        /// </summary>
        /// <param name="page">页码</param>
        /// <param name="limit">每页数量</param>
        /// <returns></returns>
        Task<ShiftPageResultDTO> GetShiftPageListAsync(int page = 1, int limit = 10);

        /// <summary>
        /// 添加班次
        /// </summary>
        /// <param name="shiftCreateDto">班次信息</param>
        /// <returns></returns>
        Task<bool> AddShiftAsync(ShiftCreateDTO shiftCreateDto);

        /// <summary>
        /// 根据ID获取班次详情
        /// </summary>
        /// <param name="id">班次ID</param>
        /// <returns></returns>
        Task<ShiftDTO> GetShiftByIdAsync(int id);

        /// <summary>
        /// 更新班次
        /// </summary>
        /// <param name="shiftUpdateDto">班次信息</param>
        /// <returns></returns>
        Task<bool> UpdateShiftAsync(ShiftUpdateDTO shiftUpdateDto);

        /// <summary>
        /// 删除班次
        /// </summary>
        /// <param name="id">班次ID</param>
        /// <returns></returns>
        Task<bool> DeleteShiftAsync(int id);
    }
}
